Python 2 and Python 3. i is the key, so you would just need to use it: for i in d: print i, d[i]. Python 3. d.items() returns the iterator; ... ... <看更多>
Search
Search
Python 2 and Python 3. i is the key, so you would just need to use it: for i in d: print i, d[i]. Python 3. d.items() returns the iterator; ... ... <看更多>